package cn.tedu._01mvcboot01.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class UserController {
    @RequestMapping("/login")
    @ResponseBody     // 返回类型
    public String login() {
        return "hello world";
    }

    @RequestMapping("/register")
    @ResponseBody
    public String register(String name,String password)
    {
        return name + ":" + password;
    }



}
